﻿<%@ Page Title="" Language="C#" MasterPageFile="~/nest2.master" AutoEventWireup="true" CodeBehind="delpub.aspx.cs" Inherits="WebApplication1.delpub" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <asp:Panel ID="Panel1" runat="server">
    <asp:GridView ID="GridView1" runat="server" 
    AutoGenerateColumns="False" DataKeyNames="pbno" DataSourceID="SqlDataSource1" 
            Height="187px" Width="613px">
        <Columns>
            <asp:BoundField DataField="pbno" HeaderText="pbno" ReadOnly="True" 
            SortExpression="pbno" />
            <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
            <asp:BoundField DataField="addr" HeaderText="addr" SortExpression="addr" />
            <asp:BoundField DataField="mail" HeaderText="mail" SortExpression="mail" />
            <asp:BoundField DataField="descr" HeaderText="descr" SortExpression="descr" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:Database1ConnectionString5 %>" 
    SelectCommand="SELECT * FROM [pub]"></asp:SqlDataSource>
        <br />
        <br />
        <asp:DropDownList ID="DropDownList2" runat="server">
        </asp:DropDownList>
    <br />
    <br />
        <asp:Button ID="delpbbtn" runat="server" Text="Delete" 
            onclick="delpbbtn_Click" />
</asp:Panel>

</asp:Content>
